package com.lijinquan.tank;


import java.io.IOException;
import java.util.Properties;

/**
 * Created by lijinquan on 2020/8/16.
 */
public class PropertyMrg {

        static Properties pro=new Properties();

        static {
            try {
                pro.load(PropertyMrg.class.getClassLoader().getResourceAsStream("config"));
            } catch (IOException e) {
                e.printStackTrace();
            }
        }

        public static Object get(String key){
            if(pro==null) return null;
            return pro.get(key);
        }

//    public static void main(String[] args) {
//        System.out.println(PropertyMrg.get("initTankCount"));
//    }

}
